@use "scss/variables";
@use "scss/colors";

.button {
  align-self: flex-end;
  width: auto;
  border: none;
  background: none;
  color: colors.$grey-300;
  padding: 0;
  padding-right: variables.$spacing-md;

  &:hover {
    background: none;
    border: none;
    color: colors.$blue-500;
  }

  &:disabled {
    background: none;
  }
}

.selectedOption {
  background: none;

  &:hover {
    background-color: colors.$grey-50;
  }
}

.container {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  width: 100%;

  // make the element click through, but all children should behave as normal so the input can be clicked as normal
  pointer-events: none;

  & > * {
    pointer-events: all;
  }
}

.buttonContent {
  background: none;
  border: none;
  display: flex;
  color: inherit;
  align-items: center;
  cursor: pointer;
  font-size: variables.$font-size-sm;
}

.inputWithHelper {
  padding-right: 35px;
}

.newInput {
  background-color: transparent;
  border: none;
  color: colors.$blue-500;
  padding: variables.$spacing-lg;
  cursor: pointer;
  width: 100%;

  &:hover {
    color: colors.$blue-900;
  }

  & > div {
    color: inherit;
  }
}
